/* styles.scss */
page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: pink;
}

.viewport {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.full-flex {
	flex: 1;
	background-color: #fff;
}

.navbar {
  background-color: #ffcc00;
  padding: 20px 10px;
  height: 150rpx;
  border-bottom-left-radius: 50px;

  .navbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
  }

  .title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
  }

  .back {
    position: absolute;
    left: 10px;
    font-size: 20px;
    color: #fff;
  }
}

.avatar {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  border-top-right-radius: 100rpx;
  background: linear-gradient(rgba(255, 192, 203, 0.9), 10%, white);

  &:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100rpx;
    height: 100rpx;
    background-color: #ffcc00;
    z-index: -1;
  }

  .avatar-content {
    position: relative;
    width: 160rpx;
    height: 160rpx;
    margin-top: 20px;

    .image {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background-color: #eee;
    }

    .edit-icon {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 40rpx;
      height: 40rpx;
      background-color: #ffcc00;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.form-container {
  background-color: #fff;
   padding-bottom: 0; // 确保底部没有额外的填充
}
.form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #fff;
  padding: 20rpx;
  box-sizing: border-box;

  &-content {
    margin-top: 20px;
  }

  &-item {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    font-size: 28rpx;

    .label {
      color: #999;
      margin-bottom: 10px;
    }

    .input {
      flex: 1;
      display: block;
      height: 46rpx;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 8px;
    }

    .input-wrapper {
      position: relative;
      display: flex;
      align-items: center;

      .input {
        flex: 1;
        display: block;
        height: 46rpx;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
      }

      .iconfont.pet-dizhi {
        position: absolute;
        right: 10px;
        font-size: 20px;
        color: #ffcc00;
        z-index: 10; // 确保图标层级足够高
      }
    }

    .error-message {
      color: red;
      font-size: 24rpx;
      margin-top: 5px;
    }
  }

  &-button {
    height: 80rpx;
    text-align: center;
    line-height: 80rpx;
    margin: 30rpx 0;
    color: #fff;
    border-radius: 80rpx;
    font-size: 30rpx;
    background-color: #ffcc00;
  }
  .bottom-image {
    margin-top: 20px; // 给图片与按钮之间添加间距
    max-width: 100%; // 确保图片不会超过容器宽度
    height: auto; // 保持图片比例
  }

  .success-message {
    text-align: center;
    margin-top: 20px;
    color: green;
    font-size: 24rpx;
  }
}
